package com.cws4cloud.cws.mall.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cws4cloud.cws.mall.cms.entity.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 内容管理
 *
 * @author zhulj
 * @date 2021-04-20 17:21:31
 */
@Mapper
public interface NewsMapper extends BaseMapper<News> {

	List<Map<String,Object>> getNewsCountGroupByClass(@Param("siteId") Integer siteId);

	News getPreNews(@Param("classId") Integer classId,@Param("sequence") Integer sequence);

	News getNextNews(@Param("classId") Integer classId,@Param("sequence") Integer sequence);
}
